package com.example.micro_property_springboot.pojo.DTO.request;

import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.NotNull;
import lombok.Data;

import java.math.BigDecimal;
import java.time.LocalDateTime;
/**
 * 资产信息请求参数
 */
@Data
@Schema(description = "资产信息请求参数")
public class AssetInfoRequest {
    @Schema(description = "资产名称")
    @NotBlank(message = "资产名称不能为空")
    private String name;

    @Schema(description = "资产分类ID")
    @NotNull(message = "分类ID不能为空")
    private Long categoryId;

    @Schema(description = "资产规格")
    @NotNull(message = "资产规格不能为空")
    private String spec;

    @Schema(description = "资产型号")
    @NotBlank(message = "资产型号不能为空")
    private String model;

    @Schema(description = "资产购买日期")
    @NotNull(message = "资产购买日期不能为空")
    private LocalDateTime purchaseDate;

    @Schema(description = "资产价格")
    @NotNull(message = "资产价格不能为空")
    private BigDecimal price;

    @Schema(description = "资产供应商")
    @NotBlank(message = "资产供应商不能为空")
    private String supplier;

    @Schema(description = "资产序列号")
    @NotBlank(message = "资产序列号不能为空")
    private String serialNum;

    @Schema(description = "存放地点")
    @NotBlank(message = "存放地点不能为空")
    private String location;
}
